How many times in this pseudo-code is the function F called? For this question, I thought function F called twice but it called three times. Are those three functions were called? F(N), F(K) and F(N-1)? 

How many times in this pseudo-code is the function F called?

Main
    Declare K as Integer
    K = 3
    Set Result = F(K)
    Write Result
End Program

Function F(N) as Integer
        If N == 1 Then
Set F = 1
    Else
        Set F = N * F(N - 1)
        Set N = N - 1
    End If
End Function
The function is called 3 times.
F(3)
F(2)
F(1)