Question d’entretien chez Yahoo

all of them are not difficult. basic C/c++ and algorithm problem