A block, of mass m, slides down a ramp without

friction, then by a horizontal surface of length L,
with coefficient of kinetic friction μ between the surface
and the block. Then there is another ramp down which you can
slide the block without friction, a horizontal portion,
frictionless, and a new, frictionless ramp that goes up,
as the picture shows. Initially, the block
is at a height h1 and is released with initial velocity
zero.