passes higher order using for loop - solution is recursive...
adds recursive solution