Adjacency Hatred Sol Problem

Code-:CodeChef: Practical coding for everyone
Question-:CodeChef: Practical coding for everyone

Consider the test input:

1
3
2 3 4
1 Like

thanks for the awesome information.