add solution for GCJ example