Leetcode Problem On Array Definition In Programming