Send a message to Piles problem solution