Created an algorithm that determines if one string is a rotation of another.