URI : 1069 (Diamonds and Sand)

Solution :