DSA-Bootcamp-Java
DSA-Bootcamp-Java copied to clipboard
Updated the loop condition
the loop is executing 1 extra time, hence giving the next value of the required one.