Question d’entretien chez Sherpa (Canada)

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