necessary and sufficient condition for flattening.

Give me the answers for test...