pls check code
Test case failing
Output Format
Print the required output
dont print “max is”
also you are just printining the last element where are u findning max?
here is you corrected code:
if this solves your doubt please mark it as resolved 