Test case failing

pls check code

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 :slight_smile: