Intel Corporation Interview Question

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