OpenText Interview Question

As soon as I went, they asked me, one coding problem