Question d’entretien chez IBM

Hackerrank Maze Question with follow ups.