Logiscool interview question

What the following code does.