Altimetrik interview question

find a unique pair from the list in java