Finish the method definition below.
data
is a hash. Given data
, and a key
and value
, the method should assign value
to key
in data
if key
is not already assigned a value. Do not assign value
to key
if key
is empty in data
.
The method should then return the updated hash.