i want to know whats the base case
and whats the itterative step

i need to see the logic of it