iASYS interview question

Java OOP,Coding ques and puzzels