Pergunta de entrevista da empresa LIBSYS (India)

A Difficult question from the patterns