Cyient interview question

Technical