Leetcode Problem On Array Definition