Basic Array Program In Leetcode Interview 150