Add solutions of problem1-13

Since I am new to python, my solutions may be less efficient. I will
rewrite them later.