TikTok Interview Question

Q: How to compute outgoing direction given incoming direction and normal?