Question d’entretien chez Codilar Technologies

Write program and explain the logic