Print Shortest Common Supersequence Leetcode Python