Angular Minds interview question

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