Aspera Code Challenge in C++