One function, greet, is defined once and called twice. Change the first name and run again — only the first greeting changes, which shows the same block being reused.
Try this: Change the name to Alex and press Run again — the first greeting becomes “Hello, Alex!” and the Sam greeting stays the same.
Press Run to see the output here.