In case of time limit exceeded


#1

Pass the vectors by reference