aaaaaa -> aa1Baa requires only 2 changes.
Yes it is 2. Check again with the updated version. The expected output should spill out 2 for input "aaaaaa" :)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.