Your question is Automate Web App Deployment Script. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given a list of deployment steps as strings, write a Python function that validates and executes them in order for a simple web application deployment workflow. Each step is one of: build, test, package, deploy, verify. Return the ordered list of executed steps if the workflow is valid. If a step appears out of order, is duplicated, or an unknown step is present, return [].
def automate_deployment(steps):