Microsoft interview question

Leetcode linked list, blind 75