Nagarro interview question

3 Coding questions of medium difficulty