Pregunta de entrevista de Google

Calculate the memory saved with different codes.