Pergunta de entrevista da empresa Jane Street

Form a random sublist of a list in linear time.