ByteDance interview question

Asked about TCP and UDP