Hexaware Technologies Interview Question

Basic oops, and cs fundamentals