Bally's Interactive Interview Question

- complete a javascript function with TDD