Implemented solution for CodeEval's Endianness challenge
https://www.codeeval.com/open_challenges/15/