title: Create a Map which maps enum
body: <p>Need your help. I had a coding interview today and had this question. </p>
  
  <p>Please complete the following snippet to create a Map which maps enum to edit privilege</p>
  
  <pre><code>Map&lt;String, Boolean&gt; userTypeToEditPermission () {
  return Stream.____(UserType.____).____(____(Enum::name,UserType::hasEsitPermission));
  
  enum UserType {
        ADMIN(true), MODERATOR(true), DEVELOPER(false);
  }
  
  private final boolean editPermission;
  
  UserType(boolean editPermission) {
       this.editPermission=editPermission
  }
  
  public boolean hasEditPermission() {
  return hasEditPermission;
  }
  </code></pre>