@brandonkwleong I think you are wrong,he set the sum to zero not the max,so,the max end with -1