Add solution for UVA 10567 Helping Fill Bates
pre-processing for the entire string and then binary search for the
proper position of the character to be used