This riddle was sent to me by Nitin Agarwal. Please let
me know if are aware
of the original author.
Solution
I wasn't able to come up with a solution myself, but
here
is a discussion some of you might find interesting.
Contact me if you have any insights. Thanks!