Common Programming Chnallenges Solution