Mobile Numeric Keypad Leetcode Python