do we need to add any header file for the swap() function used in selection sort ?
@himanshigupta579 Yes, use #include< algorithm >