For loop and recursive for loop