Debug distributed-system performance problems | Amazon Interview Question