Samsung Electronics Interview Question

basics of c++