Trustly Interview Question

When would you favor composition over inheritance?