Think of this problem as a falling loop, there is no friction, so just treat the loop as if it has rolled down and had its center of mass accelerated at 9.8m/s^2 down a wall height h. now simply use the equations for potential and kinetic energy and you're done.