Merkle Interview Question

How does google rank ads?