Find the second smallest element in an array.
Anonymous
Went with two variables which mainted the current least two elements and then returned the second lease. Took care of edge cases like <2 elements.
Check out your Company Bowl for anonymous work chats.