n moles of an ideal gas undergoes a process A and B as shown in the figure. The maximum temperature of the gas during the process will be