Add solution for UVA problem 490 Rotating Sentences