In Time Tec Interview Question

In programming round you have to write one program based on Array or tower of hanoi.