Leetcode Basic Array Questions In Cpp