OpenText Interview Question

Online coding, design problems, tell the output.