Netcore interview question

Find out min. & max. value from the given array