Added Solution for Tile cost

Solution in python