Successful solution for The Leaking Robot problem - http://www.codechef.com/AUG14/problems/CRAWA