Problem in the code execution

what is wrong in my code please specify I followed the same code discussed in the next lecture

hi @himanshuanand729 initialize mid with 0 buddy