Coding Ninja Array Problems Leetcode 75