Add new solution for Cost x Tile in ruby