In which of the following sentence ‘like’ has been used as a preposition?

He climbed the tree like a cat

He laughs like his father does

He likes to eat fish

Like-minded people are necessary for a cooperative