hihoCode acm exercise,prepare for microsoft