Implement a small, functional deployment tool or script to handle a specific infrastructure task.
Implement deployment_order(services, dependencies), where services is an array of unique service names and dependencies is an array of pairs [service, prerequisite]. Return a valid deployment order that installs every prerequisite before its dependent, choosing the lexicographically smallest available service at each step; return an empty array if the dependencies contain a cycle.
Assume every dependency names a service in services.
def deployment_order(services, dependencies):