Pregunta de entrevista de Guardian Life

Asked to write a boolean string.