Rippling Interview Question

Hard leetcode questions which seemed pretty different .