Pregunta de entrevista de Kite.com

Basic algorithm and data structure questions.