add the solution of uva 11292 problem