Added @Mooophy more terser solution (recursion)