I am unable to pass any of the test cases given in the problem statement but the code is working perfectly fine, it is shortening the URL by giving a unique ID and by passing that ID , it is redirecting the to target page correctly. I have no idea why the test cases are not passing.
Attaching my code below for your reference:
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Challenge: URL Shortener Microservice
Link to the challenge: