Answer
This is not a one-to-one function.
Work Step by Step
The ball will first ascend and then it will descend so it will pass the half of the maximum height twice - once when it ascends and once when it descends. This means that there are different moments of time to which corresponds the same value of the height (which is the function of time) so $f(t)$ is not one-to-one.