Rafael interview question

The thief problem.