This question was asked in placement exam of a Company. I was not able to understand this problem. CLick here to See the question
Input:
1
10
Output:
10
Please, someone help me to understand this problem, and if possible suggest a solution as well.