Hungarian is a (or THE) language with completely free word order.
Let's have an example: I was in the house.
In English, you could say something like "In the house I was..." but it's more poetic and generally not used in common speech. In Hungarian, all 6 permutations can be used. (I = én, was = voltam, in the house = a házban)
- Én a házban voltam = I was in the house, I don't know where the others were
- Én voltam a házban = It was me in the house, not someone else.
- A házban voltam én = I definitely visited the house, maybe other locations, I didn't. (used with an exclamation mark)
- A házban én voltam = In the house it was me, not someone else. At other places, maybe not.
- Voltam én a házban = these last two are rare, but can be used as a defense against an accusation that I wasn't in the house, or that I was somewhere else and not in the house.
- Voltam a házban én
Note, that if the person is not that important, or not accentuated, it is usually omitted, and some of the above sentences may sound more natural without the pronoun. They are correct, however, even with the pronoun.
Now you can add a time (like yesterday) to have 24 permutations, and the name of a person (who was there with me) to have 120 permutations! I did not check all of them, but did a mental check on a number of them and they are correct.