https://online.codingblocks.com/app/player/71388/content/110165/6589/lecture
Here is the link of the program
@Anku47 they are just two variables min_so_far will contain the minimum value of all the no and max_so_far maximum value. int_max is basically a large no 1e9 , so we initialized min to int max so that we get the min value at last