Mobile Keypad Problem Leetcode Python