Question d’entretien chez Alibaba Group

how to find a loop in a linked list? reverse a string?