firstReoccuringChar

For a given list L, generate a list of lists which contain all subsets of L. You are not allowed to use Python helper packages to do this. Your code should word for any L.
input:
L = [1,2]
output:
[[],[1],[2],[1,2]]