DeepL interview question

Solve the integral using chain rule