Intervalos inclusivos reversíveis em listas

Retorne todos os números inteiros de start até end, incluindo os dois extremos. Conte em ordem crescente quando start for menor e em ordem decrescente quando for maior.

reversibleInclusiveList(1, 5) // [1, 2, 3, 4, 5]
reversibleInclusiveList(24, 17) // [24, 23, 22, 21, 20, 19, 18, 17]