ABC Interview Question

based on linked list and dsa