The following sentence has been split into four segments. Identify the segment that contains a grammatical error.
I had walked / for most of the day / to Kanpur and then / get on the train by Mumbai.
1
I had walked
2
to Kanpur and then
3
get on the train by Mumbai
4
for most of the day