You will need to split / decompose the geometry and use sweep or multizone meshing methods to get such mesh.
Ansys Meshing: Decomposition for hex meshing:
Ansys Meshing: Meshing Methods:
Please go through help manual for more details
Regards,
Keyur
How to access Ansys Online Help Document
Guidelines on the Student Community
Fluids Engineering Courses | Ansys Innovation Courses