LinkedIn Interview Question

Basic questions on recursion and division.