20131013-05

UVA 12503: use recursion.