Solution to Bob on Exercism.io