Pergunta de entrevista da empresa Meditab Software

In the DSA round, I was asked to solve a problem based on finding longest non repeaiting substring using either a brute-force or optimized approach.