Leetcode Dynamic Array Problems Geeksforgeeks