code from my YT video where I coded this up - View it on GitHub
Star
64
Rank
405275