Explain the problem

my test case 1 has not passed please explain the solution

hi @prajwalsingh226_b93d74431f6edd96 make array large
say int a[1000000]; ans write a[mid] while compairing with key not mid