What is a friend?

I have been asked this question many many times. Ironically, I’ve never known the answer, but I’ve thought so much about this. Does a friend have to stay with you forever? If so, how long? And what distinguishes between a “best friend”, “friend”, “acquaintance”, “random person”, and “enemy”?