Google Interview Question

How would you solve tower of hanoi problem