Print Shortest Common Supersequence Leetcode Javascript Practice