GUVI interview question

high logical thinking question so tough