Okta interview question

Implement a flatMap function and basic JS questions like scoping and this