Rippling Interview Question

Solve a multi part problem