Racing Horses: http://www.codechef.com/problems/HORSES