Pergunta de entrevista da empresa SAP

The coding question was pretty straightforward. It involved use of common data structures and a fairly easy greedy algorithm.