First of all i have to advice u that u must dont loose confident .We are human and we do wrong things and we must overcome those and learn a lesson from them.
U should learn that there is always a proper time for everything like education,job,marriage ,sex etc.It time is mis managed then it ruined us.
U must go ahead and dont remember that person and that period of ur life.Concentrate on ur study,passion work and try to be a person what are u want to be.
Next Steps
Consult psychologist online and take counseling and learn how to deal such worse conditions in life.
Take-
1)Ignatia 200-2 drops- morning in empty stomach for two days.
2)Kali phos200X-25gms- 6 tab after tiffin in morning and 8 tab before sleep at night.