IDP Connect Interview Question

Logical reasoning