NamasteScale needs JavaScript to run. Enable it to practise system design, low level design and machine coding.
Flatten arrays to a given depth without Array.prototype.flat.