In Time Tec Interview Question

program and oops concepts. Java. Puzzles