maxR, leetcode