Pregunta de entrevista de Google

Data structure and algorithm and some mathematics