Pregunta de entrevista de ByteDance

Implement Inverse CDF sampling; find the square root of the given number using gradient descent.