A terminal option payoff is computed at each final stock node.
Call strike
At expiry, a call with strike $105.00 pays the maximum of stock minus strike and zero.
call payoff=max(S−K,0)
Terminal payoffs
The call pays $39.00 at the all-up stock price, $3.00 at the recombined middle stock price, and $0.00 at the all-down stock price.
Vuu=$39.00,Vud=Vdu=$3.00,Vdd=$0.00
Option payoff link
This is the same call-payoff rule applied separately at each terminal stock node.
V=max(S−K,0)