- Why do we need to flatten the input?
- Can we simplify this if/elsif/else to: ` ary = Array(input).flatten ` ?