Leetcode Medium Level Array Initialization Cpp Library