Adjacency Hatred Sol Problem

Code-:Solution: 51365535 | CodeChef
Question-:Contest Page | CodeChef

Consider the test input:

1
3
2 3 4
1 Like

thanks for the awesome information.