Bitwise interview question

5. pseudo code for factorial