Challenge: Anagram Problem
Understand how to create a C# function that determines whether two input strings are anagrams by comparing their characters in a case-insensitive manner. Learn to return specific results to indicate if the strings match the anagram criteria, and practice testing your code using sample inputs to verify correctness.
Task
Write a function that accepts two strings as parameters and checks whether these strings are anagrams of each other. An anagram is a text formed by rearranging the letters of another piece of text.
The strings should not be case-sensitive, meaning that Cats and AcTs are anagrams.
The function should return 1 when the strings are anagrams and -1 otherwise.