The code below simulates a small UIKit-like object with an action button. After reconfiguration, the button handler is replaced with a new one, and then invoked manually.
You need to determine the program’s exact stdout.
print.main.swift.ActionButtonHost object;configure(name:) twice with different values;tap();lastConfiguredName.swift main.swift
Foundation is usedClick a line and write what it prints. Explanation is optional.