Calculus question on maximizing or minimizing an integral

QUiz question is here: https://www.youtube.com/post/Ugkxg7lvu3DGL2pRLux6SuT_qq9-yHq5uLyT