Port my Python solution of part two of 2020_16 to C++.
Port my Python solution of part two of 2020_16 to C++.