Pergunta de entrevista da empresa Workday

Write code to create a list of every possible combination of items that could be selected from another list/array.