When you will fix these problems it will fail only the last test, because you’re not considering the negative numbers in your logic ^^
When you state max = 0 and then if stuff > max it implies that if you have an array composed by only negative numbers your alghoritm will return 0, not the largest number ( because the largest number will be less than 0)