Problems and solutions on thermodynamics and statistical mechanics