Hackerrank Sherlock And Array Problem