Pregunta de entrevista de Amazon

Questions on Medium complexity Data Structures