Pregunta de entrevista de Brilliant (CA)

Some standard data structures and algorithms question