Mobile Numeric Keypad Problem Leetcode Python Practice