Tokopedia interview question

Write code for Tower of Hanoi problem.