Wayfair interview question

Return matching element in sum of two element in a array