Mindera interview question

Simple javascript problem. Writing test cases in Gherkin