I tried to convert the below Java code into C#. The Java code works fine but C# code is not returning the powersets. Am I missing something?
Java Code