Problem says no duplicate subsets. But expected output has duplicate subsets

Your Input: 3 1 1 1
Expected output is [] [1 ] [1 ] [1 ] [1 1 ] [1 1 ] [1 1 ] [1 1 1 ]

The input is a set of distinct integers as given in the problem stmt
“Given a set of distinct integers, S, return all possible subsets.”

Click here to start solving coding interview questions