Pakistani student wins international mathematics competition