I am tasked with a little coding challenge that I can\'t seem to work out. Its meant to be done in javascript, a language I have touched in years... Basically the task is to