This problem tests your ability to handle complex pointer relationships and is a favorite in system design discussions about deep cloning data structures.
Enable JavaScript for the full StreamPrep guide.