This question strengthens the logic and approach that one should take while solving a problem related to array or lists. And also improves the knowledge of typecasting and conversion. Try it yourself !
Link to the question:
https://www.hackerrank.com/challenges...
Please tell me in the comment section if you want me to solve any the the coding problems. Also share the link to the problem.