Typescript Get Url Parameters Javascript Interview Bit Questions