Qualcomm Interview Question

Test the acyclic linked list.