While solving this problem I used this solution. Then why am I still getting the wrong solution? I did check and my output is the same as this code’s output but his solution is current and not mine. Please let me know the issue.
Consider this input
1
50
Thank you so much!