Amazon Interview Question

Find all combinations of an array that contains different levels.