User's to edit roles and permissions for any user less privileged
Drupal core doesn't have any out of the box functionality to manage roles and permissions in a hierarchical manner. 

However, there are a couple modules that provide extra permissions which might be helpful in what your trying to achieve. 


Role Delegation gives you a new set of permissions which are very fine-grained. From the module page-


  For each role, Role Delegation provides a new assign ROLE role permission to allow the assignment of that role.

Administer Users by Role. From the module page-


  This module allows site builders to set up fine-grained permissions for allowing "sub-admin" users to edit and delete other users — more specific than Drupal Core's all-or-nothing 'administer users' permission. It also provides and enforces a 'create users' permission.


From the readme of the module-


  NEW PERMISSIONS
  
  Access the users overview page
  See the list of users at admin/people.  Only users that can be edited are shown.
  
  Create new users
  Create users, at admin/people/create.
  
  Edit users with no custom roles
  Allows editing of any authenticated user that has no custom roles set.
  
  Edit users with role XXX
  Allows editing of any authenticated user with the specified role.
  To edit a user with multiple roles, the sub-admin must have permission to
  edit ALL of those roles.  ("Edit users with no custom roles" is NOT needed.)
  
  The permission for cancel work exactly the same as those for edit.


(1) should give what you need but still including (2) which might have a new permission that you wouldn't want to miss out on.