OYO Interview Question

They gave two situation based cases.