code: public static boolean is_vargiya5(String str)
      {
  
          if (str.equals("Y") || str.equals("m") || str.equals("N") || str.equals("R") || str.equals("n")) return true;
  
          return false;
      }
docs: *******************BEGINNING OF FUNCTION********************//