Pergunta de entrevista da empresa Sherpa (Canada)

Typescript coding challenge [ type, interface needed to add where repeative code]