Question d’entretien chez IBM

Complete code problems that they give you