Pregunta de entrevista de Google

more on puzzle and also technical coding and also scenario based coding