Pregunta de entrevista de Quadratic Insights

Was asked 2 DSA questions- Two Sum & Longest non repeating Substring