Concatenar um número variável de listas de entrada

Crie um método que concatene n listas de entrada, em que n é variável.

Exemplos

Program.concat(List.of(1, 2, 3), List.of(4, 5), List.of(6, 7)) ➞ List.of(1, 2, 3, 4, 5, 6, 7)

Program.concat(List.of(1), List.of(2), List.of(3), List.of(4), List.of(5), List.of(6), List.of(7)) ➞ List.of(1, 2, 3, 4, 5, 6, 7)

Program.concat(List.of(1, 2), List.of(3, 4)) ➞ List.of(1, 2, 3, 4)

Program.concat(List.of(4, 4, 4, 4, 4)) ➞ List.of(4, 4, 4, 4, 4)

Observações

As listas devem ser concatenadas na ordem dos argumentos.