DevRev Interview Question

Solve DSA with javascript language