Ok, I Just read the new challenge and some thing hit me hard(Excuse my corny literature) while trying to make sense of it(I didn't rack my brains; I directly went to the solutions page ) . See this output:
Code:
input:
vector = {-1, -2, -4, -5, -6};
output:
0 //Should'nt it be returning the least naegative number???