Camera to interact with walls in Product Viewer template

I am using the Product Viewer template. I have placed my product inside a room and I want that the camera does not go out of the walls of the room while in the game.

I want my camera to be restricted inside the premises of the room (that are the walls). I am using the product viewer template.

Please help me to find a way.