Leetcode Shortest Path With Alternating Colors