my soln of the cs50