Leetcode Easy Problems Javascript