Domanda di colloquio di Swiggy

time complexity calculation and one coding recursion based.