Infosys Interview Question

Find length of longest substring. Design patterns. Java Trivia