node.js solution to Problem 4
JS solution for Problem 7
JS solution for Problem 8