Added solution for HackerRank's Sherlock and Array challenge
https://www.hackerrank.com/challenges/sherlock-and-array