To route between VLANs, you need a device that operates at OSI layer 3, which is the Network layer. Layer 3 devices, such as routers (or Layer 3 switches), can perform routing functions and allow for communication between different VLANs.
So, the correct answer is:
3