Add solution for UVA problem 123 Searching Quickly