Small assignement for an interview as a node.js engineer