Mobile Numeric Keypad Problem Leetcode Solutions Python