I am sure you have been asked this question in one of the interviews. It looks simple at first. But the interviewer is actually checking whether you understand recursion, objects, and how JavaScript ...