First problem solved 100/100
Second problem solved 100/100.
Problem 3 solved 100/100
Problem 4 solved 100/100.
Problem 5 solved, not yet checked.

Using bitwise operators for generating all possible subsets of a given
set.