JS Problem 16 Solution
JS Solution for Problem 11