Crypto Finance interview question

How do public and private keys work?