IG Group interview question

Test case using Jasmine