Pirate Diamond Math Problem