Adding question17 code
Adding ANF_eval function