I got curious and also checked the provided solutions in the challenge guide. I noticed that my solution is different from all those and I would like to get some feedback. I’m still new to this coding stuff and I don’t really know about performace on algorithms, I know it works but I have no idea how efficient it is compared to the other answers
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.