Rippling Interview Question

Bus Route question ( available in leetcode)