How To Find Minimal Degree Of A Function