Pregunta de entrevista de Hudson River Trading

Stock buy sell problems, sorting algorithms