hackerrank max min problem solution

visit shbcf.ru