how to select top most shapes if the shape is stacked on another shape

how to select top most shapes if the shape is stacked on another shape