Moon Technolabs interview question

OOPs concept