Wishtree Technologies interview question

abstraction,polymorphism and java basics