banned list into a set for faster lookups.count and sum_ to 0.n.
a. If the current number is not in the banned set and adding it to sum_ does not exceed maxSum, increment count and add the number to sum_.
b. If adding the current number to sum_ would exceed maxSum, break the loop.count.