Some test cases not passing

Some test cases cannot be passed

@aatish08 You should consider a different approach as this approach will not give you the correct answer.
You are comparing the first element only. (since your for loop will run only 1 time)

Hey Aatish,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

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.