Pregunta de entrevista de Amazon

General algorithm & datastructures questions - nothing detailed.