Rational numbers/Squaring/Exercise

Is the mapping

injective? Is it surjective?