Meituan Interview Question

How SSL/TLS works in principle?