Implemented solution for CodeEval's Swap Elements challenge
https://www.codeeval.com/open_challenges/112/