Microsoft Interview Question

What would you do in different scenarios