Question d’entretien chez IBM

Solve these problems using everything you know?