https://www.reddit.com/r/dailyprogrammer/comments/pv98f/2182012_challenge_10_easy/