OpenText Interview Question

refer hackerrank previous questions for 1st rounnd