Excel Sheet Problem Leetcode Solutions Python