The correct option is C water over flow in both cases
When heated above 40C, volume will increase, hence it will overflow.
When cooled below 40C, it also expands and volume increases( anomalous expansion) until 00C.
Hence, in both cases it will overflow.