Luxoft interview question

Program to find pairs with sum k from array