Pregunta de entrevista de JPMorganChase

Typescript flatten operator and other utility methods.