TATA ELXSI interview question

How does the HTTPS encryption works?