Unpaired Player
Easybit manipulationhash map
Every player in the lobby joined with exactly one friend, so every player id appears exactly twice in ids, except for one player who came alone and appears once.
Return the id of the player who came alone. Try to do it without extra memory.
Examples
Input: ids = [4,9,4]
Output: 9
Input: ids = [7,3,5,3,7]
Output: 5