Game Show

Alex is participating in a game show. Mr. Phil is the host of the game. Alex is provided with an array containing N distinct integers from 1 to N. Mr. Phil has the same copy of the array. There are two phases of the game.


This is a companion discussion topic for the original entry at https://toph.co/p/game-show