MAX ELEMENT WRONG OUTPUT ISSUE

I have written this find max element code this is working fine with CB ide but it’s showing wrong output in the editor provided in the challenges section of the course.

Hey, i ran your code it is being accepted on hackerblocks without any changes.Please try to submit again.

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.