Count ordered pairs that concatenate to target | Capital One Interview Question