Design a URL shortener | J.P. Morgan Interview Question