FDM Group interview question

OOPS concepts, and basic sql queries