SS&C interview question

Difference between unrealized and realized gain