Divide Array Into Equal Parts Leetcode Playground Java