pegipegi interview question

First question, get the min and max values from a list / array of Integer.