Nagarro interview question

They are based on arrays and strings