Walmart interview question

1.Convert List to Map using Java 8 syntax. 2. Tree Map with custom key. 3. Synchronization