What is purpose of valve overlap?

It improves the efficiency of the engine by allowing better exhaust out flow and intake in flow.