AMD interview question

describe a algorithm