Update main.c

anagram function added. duplicate function is NOT working.