In Time Tec interview question

Oops concepts, pattern programs and palindrome program