Add solution to Captricity's code challenge