Question d’entretien chez We.Vision

I was asked to write a code to solve a data structure problem