Intel Corporation interview question

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