Amazon Interview Question

first question was longest non-repeating substring and second was n -cpu cycle question Second interview also has two dsa questions one is number of islands and second was dsa mathematics topic i dont remember actually