Homework 3 Solutions

This won't work when you wrap around.