Optum interview question

Practical coding round for JS