Simplify360 interview question

Oops concepts