Amazon Interview Question

how could you write good udp programs?