WNS-Vuram interview question

program based on bit manipulations and pattern printing.