Pergunta de entrevista da empresa Workday

The online test consisted of 3 problems, one in Java, one in SQL, one in Javascript. The SQL and Javascript were quite basic and I managed to finish both within a few minutes. The Java one asked: Given a String of [a-z, A-Z, 0-9], find length of the longest substring that satisfies the following rules: a substring cannot contain digits [0-9], a substring should contain at least one capital character [A-Z]. e.g. given the String "aqW9ertyz", the longest valid substring has length 3 ("aqW").