Pergunta de entrevista da empresa Rafay Systems

Now write code so that if the string was null it would output an error.