Implemented solution for CodeEval's Array Absurdity challenge
https://www.codeeval.com/open_challenges/41/