Cyient Interview Question

Oops concepts