Kaar Technologies Interview Question

Logical reasoning