OYO interview question

They gave two situation based cases.