Pregunta de entrevista de Adobe

Algorithm - find minimum and maximum of the array after each query.