This question concerns an interview question. What is the policy answering such on Stack Overflow? Is it OK to just for fun give an answer that would
- solve the problem using code?
- give the reasoning for the solution or the correctness of one's solution?
- provide hints in the right direction?
Here's a snapshot of the original question, which has since been deleted: