Pergunta de entrevista da empresa Microsoft

In first technical round, I was asked two linked list questions to code. First was to detect loop in the linked list. Second question was to delete nth node from the end.