Pregunta de entrevista de LSEG (London Stock Exchange Group)

A string problem to find if string has 'b' after 'a' two decent array problems