Birdeye Interview Question

Flatten an arbitrarily nested array