Add problem16 solution
Fix problem13 solution to print correct result