participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 109,3,364165024.364294,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secondGreatest(vector &integers)){ int },7,13927.088377387478,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 109,3,364229175.564185,Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002. Given an int variable modelYear and a string modelName, print "RECALL" if modelYear and modelName match the recal details,void print(int modelYear, string modelName){ if(modelYear >= 1) },0,4121.609501398021,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 109,3,364295725.159857,Write a statement that toggles the value of the bool variable onOffSwitch. That is, if onOffSwitch is false, itsvalue is changed to true; if onOffSwitch is true, its value is changed to false.,if(onOffSwitch == false){ isvalue = true } eli{ isvalue = false },1,6521.91884108425,60000 109,3,364361540.707908,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,bool containsDuplicate(vector integers){ for(int i =0; i< integers.size(); ++i){ } },6,5764.646146841251,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 109,3,364427885.159846,Implement a function is_sorted that accepts a vector of integer values and returns true if it is non-decreasing, and false otherwise,bool is_sorted(vector integers){ for(int i=0; i < integers.size();++i){ if [i] } },3,6312.112918052269,60000