Proofpoint interview question

Whiteboard coding exercise, general data structure & algorithm question.