Function For Maximum Element In Array Python Definition Range