The solution should follow the wording of hint 2 more closely. In particular, the connection to the interval I has to be made clear. Further, please calculate the limits of g and h separately, and only then conclude with the squeeze theorem that the limit of f must be the same.