Pergunta de entrevista da empresa Intel Corporation

Some generic code in unknown language, was asked what the code does, the answer was binary counting.