Zoho Interview Question

Logical puzzle and problem solving