If your friend is a victim cyber crime then go talk to her understand her better that why is losing her confidence what is the reason behind it and why she is not able to score good marks in exam. If the problem the problem is very serious then tell it to her parents. They will take a correct step. Take your friend to a counsellor so that the counselling will help her to get out of her problem.
11 4 11
Hope so my answer has helped u ☺