Решение задач Codewars: Find Maximum and Minimum Values of a List

Задача Codewars - найти максимум и минимум в списке (массиве).