Keyboard Row Leetcode Python