Design tests to measure latency impact | Google Interview Question