Cyient interview question

Oops concepts