added solution to UVa 12032-The Monkey and the Oiled Bamboo