Computing the running max
interviewcache.com