I see that you post both the question link and the submission link and even describe your issue in your topics. Like in this topic too. Great to see such a responsible forum member!
I see that you even tried to format your code for ease of all, but it didn’t work out.
It’s because you have to use back ticks ``` instead of '''. You can see how to format your code here!