Clario Interview Question

Flatten an array in java