Design a multi-threaded synchronous log writer | Databricks Interview Question