may be the test cases are wrong because my answer is same as in GFG website for the 4 number of disks
@akash.91.yadav just change B and C character as dest is represented by b and u have it as c
i hope its cleared if yes dont forget to mark it as resolved @akash.91.yadav