Get permission for any site and lists in SharePoint and Office 365 using Rest Api and Jquery

Finding a permission for a list or site is not a tough task to talk about but the process of getting to it the number of clicks required might be little cumbersome for lot of people. Specially when you want to look at lot of lists and sites simultaneously.