Create compare-version-numbers.cpp

Key points:
1. If version1's digits are less than version2, consider the missed digits == 0 when comparing with version2;
2. There is the last digit to compare when the loop ends.