Cascaded function call question

its a question in class question thats the question