The most challenging phase in a student's life is not when they are in school. But when they leave the four walls of school. Then they realise how difficult it can be to land good paying jobs after graduation.
So many young people often get depressed during this period. Others engage in vices to survive.
It's beautiful how you handled your rejection until you were offered a job.