Pregunta de entrevista de Angular Minds

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