Fiverr Inc. interview question

Implement the power set python problem.