Freshworks Interview Question

Detect and print the loop in given linked list A puzzle on weights Time complexities of sorting algorithms