AVEVA Interview Question

1. Write a program to find the longest substring without repeating characters.