The reader may perhaps be asking where the energy comes from, which raises the glass from floor to table. That is no problem. There cannot be a problem with energy, because in the situation in which the glass falls from the table, the energy that it gains from falling must go somewhere. In fact the energy of the falling glass goes into heat.