Mobile Numeric Keypad Leetcode Problems Python