Coding Ninja Array Problems Leetcode