A, B, C, D, and E are five friends who visited different places in a day. A visited before B but after C. D visited before E but after B. What is the correct order of visits?

Answer: A. C, A, B, D, E
C must visit first, followed by A, then B, and finally D before E.