Meituan interview question

How SSL/TLS works in principle?