Morgan Stanley Interview Question

describe strategy pattern.