Pergunta de entrevista da empresa Adobe

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