Upper and lower bound prob

only 1 test case is passing

@guptarahul3100
hello Rahul,
check maximum value of n and Increase ur array size accordingly.
rest everything is correct.

thank you for the help