Pergunta de entrevista da empresa DP World

Given a array of integers find triplets that equals a target sum