Experian interview question

There were 2 JavaScript algorithm problems with 45 minutes to resolve both.