IBM Interview Question

What does this code do?