problem10 dumb solution