Leetcode Problems In Javascript How To Convert