hackerrank sparse array problem

welcome to shbcf.ru