Leetcode Design Hashmap Python Code For Tic Tac