Bloomberg Interview Question

How to encode arrays via strings.