In Time Tec interview question

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