Pergunta de entrevista da empresa All Generation Tech

Find the minimum and maximum elements from an array of integers using constant space. Bonus points if it can be solved in a single loop.