Deemsys Interview Question

oops concepts