startGene
to the queue and the visited set.endGene
. If so, return the number of mutations (level).'A'
, 'C'
, 'G'
, 'T'
).bank
and has not been visited, add it to the queue and mark it as visited.endGene
is not found after the BFS completes, return -1
.