Rotate based on surface?

not sure how to approach it that way?
Any chance that you can elaborate?

Btw, thanks in advanced. Really appricate you both taking time to help