BrowserStack interview question

Java problem solving and selenium and API