Yudiz Solutions interview question

2-3 Logical Questions