Toptal interview question

Some LeetCode exercise with tests