Amazon interview question

estructuras de datos, space y time complexity, etc