This page has moved to https://blog.shuaizhang.cc/zh-hans/posts/different-solutions-to-an-interview-problem/.