Pregunta de entrevista de Delivery Hero

Gave logic and asked to write alogrithm in Live Coding Roun