Java questionTowers of Hanoi (15 points)Given:• n disks, all of different sizes – the size of the ith diskis i• 3 pegs – A, B, C the number of pegs might change in a futureversion of the game• Initially, all the disks are stacked on peg ARequirement:Never place a larger disk on top of a smaller disk (disk 5 islarger than disk 4, etc.)Objective:Move the disks from peg A to peg CInput:n, the number of disks initially stacked on peg A; you shouldget n from the command line, as a command line argument; assume n< 10Output:Commands describing how the player
PayPal Gateway not configured
PayPal Gateway not configured