Pratham Software interview question

Final year project and oops