Pregunta de entrevista de Ocado Technology

Coding question with live problem