solutions for programs problems I solved on CodeEval