Pregunta de entrevista de Rippling

Bus Route question ( available in leetcode)