how to answer i hope you had a nice weekend?
If this person is having a weekend too, just say "thanks! Hope the same to you too!" Or " hope you have a great weekend too!" If they don't, you can simply thank them or if they work or study you can say "thanks!