Luxoft interview question

Online coding. finding pair elements in an array