problem: https://toph.co/p/problem-number-nine-and-three-quarter solution: http://ideone.com/RYkF3m
though I solved it in two different ways. but I can't understand this solution. I tried but couldn't make a communication with the actual writer of the solution. Please help me.