SoftwareSeni Interview Question

Solving test cases in JavaScript