Solution for a challenge https://devchallenges.io/challenges/8Y3J4ucAMQpSnYTwwWW8 from Devchallenges.io.