n
function lexicalOrder(n: number): number[] { const arr = Array.from({ length: n }, (_, i) => i + 1) return arr.sort() };