Pregunta de entrevista de Meta

The questions are mostly about designing data structure and sorting algorithm.