Fixed Question 4

Removed a not allowed Math.max and removed unnecesary code.