Houzz Interview Question

Print all combinations within an array