Question d’entretien chez Swiggy

time complexity calculation and one coding recursion based.