Nagarro interview question

Coding test - 3 Questions IQ test