To figure out if the given relation is a function, we first need to know what a function is:
Function: A relation which relates the element x of set X with a single element of set Y
which means that every value of x can give only one value of y
but we can clearly see from the provided diagram that 5 has 2 possible outputs. Hence, the given relation is NOT a function