Top Array Problems Leetcode Playground Java