Pergunta de entrevista da empresa Frontier Science Foundation

1) Write a function that swaps reverses the order of a list in java