Pergunta de entrevista da empresa Accenture

How is the collect statement used?