ASMPT interview question

FYP, C++ problems