IBM interview question

What does this code do?