In Time Tec interview question

the program was about recursion and array sorting