freeCodeCamp algorithm challenges

Quick solutions to the JavaScript algorithm challenges in the freeCodeCamp curriculum.