Design a CPA system for ad bidding | Apple Interview Question