NVIDIA interview question

Phone round 1 : C++ concepts and a simple algorithm