Google interview question

Walk us through how dynamic optimization works.