The HR or human resource is a function that helps in performing the roles such as managing employee …