maximum element hackerrank solution

join shbcf.ru