Pergunta de entrevista da empresa The Home Depot

reverse an unsorted integer array; cycle in a linked list