48 Refactored to use more intuitive recursive solution