Leetcode 3263. Convert Doubly Linked List to Array I | Hello Interview