Add solution for STONES

http://www.codechef.com/problems/STONES/