Fine IT Solutions interview question

Oops concepts and logical