Pergunta de entrevista da empresa JPMorganChase

Typescript flatten operator and other utility methods.