Pregunta de entrevista de Google

Data Structure questions with a little twist.