p22 solved
phil's solutions, resolving the tailrec as Phil. This way a reverse is
not needed