Function to check whether the sum of distinct digits of two numbers are equal
function checkSum ( $ m , $ n ) { $ sumM = distinctDigitSum ( $ m ) ; $ sumN = distinctDigitSum ( $ n ) ; if ( $ sumM != $ sumN ) return " YES " ; return " NO " ; }