McGraw Hill Interview Question

What does this code do? How would you implement this? Is there a better way to do this? What projects do you work on? Tell me a bit about yourself