Pregunta de entrevista de Rippling

Standard algorithm problems which required coding at the end