Create a function that takes an imgur link (as a string) and extracts the unique id and type. Return an object containing the unique id, and a string indicating what type of link it is.
The link could be pointing to:
http://imgur.com/a/cjh4E)http://imgur.com/gallery/59npG)http://imgur.com/OzZUNMM)http://i.imgur.com/altd8Ld.png)imgurUrlParser("http://imgur.com/a/cjh4E") ➞ { id: "cjh4E", type: "album" }
imgurUrlParser("http://imgur.com/gallery/59npG") ➞ { id: "59npG", type: "gallery" }
imgurUrlParser("http://i.imgur.com/altd8Ld.png") ➞ { id: "altd8Ld", type: "image" }
There are a few cases where the link has some changes. Look at the additional tests in the Tests tab to know more.