Bank of America interview question

JS string and array methods.