RailYatri Interview Question

oops concepts