Mobile Keypad Problem Leetcode Javascript Practice