Pregunta de entrevista de Technoforte Software

Two to Three Logical programming question.