Zoho interview question

Logical puzzle and problem solving