NDK factorial android example