Logiscool Interview Question

What the following code does.