Answer
The design won't work in the real world, with friction.
The second hill is the same height as the first, and the car, if starting with a very slow speed, will not reach its original height and attain its original PE.
Some of the original potential energy will be converted into thermal and sound energy.