Pregunta de entrevista de Google

they all are on leetcode