Dashlane Interview Question

Javascript challenge based on callbacks. Then DS/A round with LC type Q's