Wrote code to pass all update candy tests.