Design Leetcode Problems On Python Dictionary