It's a matter of getting the right elements of the DFTs of A and B lined up to do the complex multiplication.