Question d’entretien chez Happiest Minds Technologies

asked to solve 2 problems in python