eQ Technologic interview question

focused more on object oriented part