Pergunta de entrevista da empresa Angular Minds

Print the numbers from the array whose sum is equal to 10."