Question d’entretien chez Siemens

one coding question some puzzles related to mathematics