J.P. Morgan interview question

programming: list and combination