Question d’entretien chez Ancestry

Coding question- medium difficulty level questions from hacker rank/leet