Amazon interview question

Define the strategy pattern and when could it be used