OpenText interview question

Online coding, design problems, tell the output.