Add solution for UVA 10118 Free Candies
DFS with memorization