def find_port(ports, target):
"""
Returns the first integer in ports that equals the target or is greater.
If there is no solution, returns -1.
Args:
ports (list): [80, 22, 443, 21]
target (int): 25
print(find_port(ports, target))
Returns:
int: The first port number greater than or equal to the target, or -1 if not found.
"""
# Iterate over the ports and return the first one that's greater than or equal to the target
for port in ports:
if port >= target:
return port
# If no port is greater than or equal to the target, return -1
return -1
ZGVmIGZpbmRfcG9ydChwb3J0cywgdGFyZ2V0KToKICAgICIiIgogICAgUmV0dXJucyB0aGUgZmlyc3QgaW50ZWdlciBpbiBwb3J0cyB0aGF0IGVxdWFscyB0aGUgdGFyZ2V0IG9yIGlzIGdyZWF0ZXIuCiAgICBJZiB0aGVyZSBpcyBubyBzb2x1dGlvbiwgcmV0dXJucyAtMS4KCiAgICBBcmdzOgogICAgICAgIHBvcnRzIChsaXN0KTogWzgwLCAyMiwgNDQzLCAyMV0KICAgICAgICB0YXJnZXQgKGludCk6IDI1CiAgICAgICAgcHJpbnQoZmluZF9wb3J0KHBvcnRzLCB0YXJnZXQpKSAKCiAgICBSZXR1cm5zOgogICAgICAgIGludDogVGhlIGZpcnN0IHBvcnQgbnVtYmVyIGdyZWF0ZXIgdGhhbiBvciBlcXVhbCB0byB0aGUgdGFyZ2V0LCBvciAtMSBpZiBub3QgZm91bmQuCiAgICAiIiIKICAgICMgSXRlcmF0ZSBvdmVyIHRoZSBwb3J0cyBhbmQgcmV0dXJuIHRoZSBmaXJzdCBvbmUgdGhhdCdzIGdyZWF0ZXIgdGhhbiBvciBlcXVhbCB0byB0aGUgdGFyZ2V0CiAgICBmb3IgcG9ydCBpbiBwb3J0czoKICAgICAgICBpZiBwb3J0ID49IHRhcmdldDoKICAgICAgICAgICAgcmV0dXJuIHBvcnQKICAgIAogICAgIyBJZiBubyBwb3J0IGlzIGdyZWF0ZXIgdGhhbiBvciBlcXVhbCB0byB0aGUgdGFyZ2V0LCByZXR1cm4gLTEKICAgIHJldHVybiAtMQ==