Shopee interview question

UDP/TCP , Space Time Complexity