Amazon interview question

how could you write good udp programs?