One of the two effects increasing the kinetic energy of the gas is the fact that a molecule approaching the oscillating piston has a slightly higher chance of hitting the piston when the piston is moving toward the molecule, compared to when it is moving away from the molecule.
Please submit the solution to this problem via e-mail to physcs.cup@gmail.com.