public static int mystery(int value)
{
    if(value <= 10)                             // checks if 9 <= 10, which is true
        return value * 3;                       // computes 9 * 3, which is 27
                                                // stops and returns 27
    
    return value + mystery(mystery(value / 5));
    //              call2     call 1
}

Call stack

m(9)   returns 27
m(45)1    45 + ____

Forward to Step 4
Back to Step 2
Back to main example