Zend certified PHP/Magento developer

How to execute custom controller action for product in magento2?

I would like to write some custom code product actions in a controller is executed.

When I have click on the product than showing multiple brands and after that click on brand then show product detail page. I am not able to how to achieve this functionality

Please give me any solution?