For-loop Challenge

Here’s my solution for the challenge :slight_smile: