The following sentence has been split into four segments. Identify the segment that contains a grammatical error.
He didn't knew / where to keep his books / so he left them / lying on the table.
1
so he left them
2
lying on the table
3
He didn't knew
4
where to keep his books