Pergunta de entrevista da empresa Tripadvisor

Minimize comparisons to find minimum and maximum elements in an array