Pregunta de entrevista de Fast Enterprises

Problem solving question about rocks.