ServiceNow Interview Question

to Solve a DSA problem