naive solution to problem 13 complete
added missing return