Varsity Tutors interview question

Solve an integral