Hexaware Technologies interview question

Aptitude, logical, c coding