Pregunta de entrevista de Fundbox

Some array algo and a system design question