I\'m new to programming and I was trying to solve some questions on Hackerrank. I stumbled upon this question and wasn\'t able to solve it. Here\'s the question:
&quo