HTC google nexus brick how to unlock boot lock? and flash?

Hi team i have htc google nexus stuck on google logo already try many time factory reset no luck
i need to flash rom but it bootloader lock
can u plz tell me how do i unlock bootloader ? and how do i flash this tablet?