Question d’entretien chez VARANK Tech

they asked me to do code and provide the solution for the problem