Ma Leetcode Solution Javascript With W3schools