Bask Health interview question

JS array and object manipulation