public static bool haveUnique(string strr){
if(string.IsNullOrWhiteSpace(strr)){
Console.WriteLine("String is null or empty");
string str = strr.ToLower();
for(int i=0; i<str.Length; i++){
for(int j =i+1; j<str.Length;j++){
public static bool isPermutation(string str1, string str2){
if(string.IsNullOrWhiteSpace(str1) || string.IsNullOrWhiteSpace(str2)){
Console.WriteLine("One string is empty or null");
if(str2.Length > str1.Length){
string strLower1 = str1.ToLower();
string strLower2 = str2.ToLower();
for(int i=0; i<strLower2.Length;i++){
if(!strLower1.Contains(strLower2[i].ToString())){
public static void Main()
Console.WriteLine("Hello World");
Console.WriteLine(haveUnique("Apple"));
Console.WriteLine(haveUnique("jar"));
Console.WriteLine(haveUnique(""));
Console.WriteLine(isPermutation("age","ga"));
Console.WriteLine(isPermutation("age","gaf"));
Console.WriteLine(isPermutation("age",""));