Solved Implement The Following Function Using A Two Level

Solved Implement The Following Function Using A Two Level