array manipulation hackerrank solution

welcome to shbcf.ru