Question d’entretien chez Grab

Three problems in codility. One sql, two standard algorithm problems.