This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I'm not sure if you know this or not, but you can have multiple solutions to a topic. @Thableaus solution gives you the correct output, even though it's not as pretty as mine:), so you should mark his as a solution as well.