Was ancient China a democracy?

How could is be? United states was one of the earliest, which was few hundred years ago..