add solution for gcj qualification 2013 ProblemA