Rippling interview question

Hard leetcode questions which seemed pretty different .