Pairing Opposite Elements in Arrays Using Scala | CodeSignal Learn