Pregunta de entrevista de Proofpoint

Whiteboard coding exercise, general data structure & algorithm question.