Total Number Of Leetcode Problems Javascript For Loop