OpenText Interview Question

DSA question : Three sum problem (printing all triplets which makes sum equals to given k).