The domain are your X values(1, 3, 4, 6) and your range is your Y values (2, 3, 1, 2)
This is a function and that is because every X has only one Y.
It is okay for your Y values to have same numbers, but it is not a function if your X values are repeated/the same
Hope this helps :)