Synechron interview question

OOPS Concepts