1. He read this book in a day.

2. He read this book within a day.
3. He read this book at the end of a day.
------------------------------
'In' means 'within' or 'at the end of' according to a dictionary.

Q1: Does #1 mean #2?
Q2: When he read the book for 1 hour and he finished reading the book, can we say as in #1?
Q3:When he read the book for 24 hours and he finished reading the book, can we say as in #1?
Q4: Is #3 correct?

3 answers

#3 is correct, but means something different than #s 1 and 2. 1 and 2 mean the same thing. #3 means that he read AFTER the normal daily activities were completed, i.e. after school or work, after the children were tucked in for the night, or whatever were activities separate from reading the book.

Q2 & 3, yes to both. A day is 24 hours. Any span within that 24 hours is "within" or "in" a day.
Thank you for your help.
Then, what is the difference betwen #4 and #5? Can we use #4, when it took one day for him to read the bok?

4. He read this book in five days.

5. He read this book within five days.
Well, yes, they do mean the same thing. "Within" means it took no longer than five days, or one day in 1 & 2. "In one day" might mean it took the whole day. Both are a little vague about exactly how long it took to read a book. They set a parameter. Maybe it only took three hours, maybe all 24 hours, but he started the book and finished it in the span of one day or five or whatever.