The word is su(water). It is the definite direct object of the sentence so accusative case marker will be affixed. Vowel harmony comes in at this point. There are four forms of accusative marker: -i, -ı, -u, -ü. The last vowel of the word is 'u' so it gets a '-u'. Regarding -y, that is a buffer letter. Some more information about vowel harmony:
There are two kinds of markers in Turkish which vowel harmony applies: The one with -a, -e and ones with -i, -ı, -u, -ü.
If marker is an -a, -e one,<pre>
the words whose last vowels are one of -a, -ı, -o, -u take '-a'. (adamlar, sorunlar, bakışlar, kollar) the words whose last vowels are one of -e, -i, -ö, -ü take '-e'. (ördekler, kiviler, banliyöler, ürünler)</pre>
If marker is an -ı, -i, -u, -ü one,<pre>
the words whose last vowels are -a or -ı take '-ı'. (elmayı, kalemi) the words whose last vowels are -e or -i take '-i'. (çileği, kirpiyi) the words whose last vowels are -o or -u take '-u'. (sonu, burunu) the word whose last vowels are -ö or -ü take '-ü'. (gözü, üzümü)</pre>