Sorted Array Problem

I tried submitting the code and 2 out of the 3 test cases pass,however the 2nd test case fails. Please tell me why is it so?
LINK: https://ide.codingblocks.com/s/285915

Please help me out to resolve the issue?

hello @gptradhika1208
use <= in place of < .
rest everything is correct

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.