C++ Coding Challenge Submission from Yang Chi (yang@yangchi.me)