JPMorganChase Interview Question

Typescript flatten operator and other utility methods.