In Time Tec interview question

program and oops concepts. Java. Puzzles