Solution for problem 16 with only strings and ints!