Xiaomi interview question

Some coding questions from leetcode, MySQL theory, B+ trees, ACID, Indexes