If the inner loop starts for index+1, seen isn't necesasry to track duplicate pairs