public static Integer GetBinaryValue(int length, String string)
	{
		if(string.length() != length)
		{
			System.out.println("LENGHT != STRING SIZE");
			return 1 / 0;
		}
		if(length % 2 != 0)
		{
			System.out.println("LENGTH % 2 IS NOT 0");
			return 1 / 0;
		}
		Character[] chars = StringToCharArray(string);
		for(char ch : chars)
		{
			if(ch != '0' && ch != '1')
			{
				System.out.println("A CHARACTER ISN'T 0 OR 1");
				return 1 / 0;
			}
		}
		chars = Reverse(chars);
		int value = 0;
		int val = 1;
		for(char nil : chars)
		{
			if(nil == '1')
				value += val;
			val *= 2;
		}
		return value;
	}