code: public static boolean is_kavarga(String str)
      {
  
          if (str.equals("k") || str.equals("K") || str.equals("g") || str.equals("G") || str.equals("N")) return true;
  
          return false;
      }
docs: *******************BEGINNING OF FUNCTION********************//