Added solutions to reversing a string, and calculating tile costs