Mobile Keypad Problem Leetcode Solutions Python