Rippling interview question

Standard algorithm problems which required coding at the end