Schindler Interview Question

Write code for separate number whose sum is 10 from list