Excel Sheet Problem Leetcode Python