Add Integer Leetcode Problems Javascript Map Function