Pergunta de entrevista da empresa N26

time and memory complexity on live coding interview