How to move an object to multiple locations with a single timeline

I’m struggling to make this. Could you make an example?