Generate all the submasks for a given mask ?
How do I generate all the submasks for a given mask?
CodeChef Starters 133 Solution Discussion