Solutions for tests on the LeetCode