IGT interview question

Basic c++ questions and algorithms