Leetcode Shortest Path With Alternating Colors Rows