Conservation of energy explains that energy can only be transferred between different forms of energy
The tension in the string with friction would be the biggest because of the involvement of the force of gravity. This would result in that the friction force that is acting on the system. There is no friction in the frictionless system, and only the force of gravity is relevant.