Bit Manipulation - Subsets Using Bitmask
Given the following Python code that generates all subsets of
nums = [1, 2, 3], what is the value of res after the function completes?