031 - recursive solution w/ shortcut