Smallest Rearrangement With No Equal Neighbours

Company: Morgan Stanley_14sep

Difficulty: medium