Maximum Element Hackerrank Solution Python