Mindera Interview Question

Simple javascript problem. Writing test cases in Gherkin