three word list and input is combination of second and third words. Generalize the solution to functional style
two word list and input is double of first or second word. Generalize the solution to combination plus transpose