### P.S. Thanks for this amazing repo #### The recursive function becomes inefficient really fast and usually reaches maximum stack size for values >=30