Problem Link: CodeChef: Practical coding for everyone Learning course: Learn Java
What are you not able to understand in this problem?