Leetcode Problem On Array Definition Math