Di String Match Leetcode Javascript Practice