Jeavio Interview Question

Oops concepts and a dsa problem