AMD Interview Question

describe a algorithm