Instead of giving advice, use the GROW model. GROW is a coaching model that breaks problem solving into four prompts:
Goal: What do you want?
Reality: Where are you now?
Options (or Obstacles): What could you do / what is standing in the way?
Will (or Way forward): What will you do?Source
Because remember, giving advice is a last resort.