I’m not proud but after 3 hours in part 2 I had to look up help. I was trying to do it using recursion and it was not working at all.
Even after watching a couple of videos and reading code I’m not sure why part 2 works as it does 😭
I don’t normally code so this is like my yearly training 😂