Subsets & Combinations - Count Number of Max Bitwise-OR Subsets
Given the following Python function to count subsets with maximum bitwise OR, what is the output when the input array is [1, 2, 3]?
```python
class Solution:
def countMaxOrSubsets(self, nums):
max_or = 0
count = 0
def backtrack(i, current_or):
nonlocal max_or, count
if i == len(nums):
if current_or == max_or:
count += 1
elif current_or > max_or:
max_or = current_or
count = 1
return
backtrack(i + 1, current_or | nums[i])
backtrack(i + 1, current_or)
backtrack(0, 0)
return count
```
