add reset an array logical challenge