BNY Interview Question

Some oops and sql related questions (medium difficulty)