Ramco Systems interview question

Reasoning & Logical