Pergunta de entrevista da empresa Microsoft

stack and some of it required bit masking.