Capgemini Engineering interview question

wrote code to find the largest substring of a given string without repeating characters