Added brackets solution
Added solution for dominator