Please do not offer up solutions.
We are a learning platform and do not allow solutions posted to the forum.
It is best to provide hints to the user so they can learn how to do it on their own and learn better.
Also, here is how to format code in the forum.
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.