SRM 148 - Backtracking.