I was stuck for a very long time and wanted to pick your brains.(even though I passed all the test cases)
I just handled every single one of them, but I saw a lot more concise method. Can you walk me through how you approached this problem? I did some pseudo code to handle every big cases and within them I tried handling the smaller one.
please and thank you
Here are my logs:
include relevant code here (please make sure to keep the backticks around this!)

