This is a very easy problem , and pretty basic to start with if you've already solved some very basic problems like factorial, sum, and even odd number problems.
Link for 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.