Schindler interview question

Write code for separate number whose sum is 10 from list