Sponsored
Use these hints if you're stuck. Try solving on your own first.
For each tile, check that the previous and the next tile have different colors from that tile or not.
Solve with full IDE support and test cases