SRM371 - recursion.