Thoughtworks Interview Question

Simple problem solving question where we have to apply our Object Oriented skills.