Pregunta de entrevista de Swimm

Algorithm code question, saving min and max out of a data structure.