a1qa Interview Question

Main question was about OOP based question.