Pergunta de entrevista da empresa Wolt

Technical question relating to the home work task I was given