This is codedhef program for Level Of Difference. [Solution 1]