Added solution to problem A of Round 1 of GCJ 2014