Unclear why sequence is off from the correct answer. It is still correct as per the rules though

https://ide.codingblocks.com/s/110452 Starts with “Moving ring 1 from A to B” instead of “to C”

@Sriram-Rajan-10104264111174086
The problem requires you to move your disks from A to B , not from A to C.
Change your function call to
towerOfHanoi(N, ‘A’, ‘B’, ‘C’);
so that B becomes your destination tower.