Amazon interview question

They will give any one scenario and ask you to write a function in your preferred language. How will you automate that scenario etc.,