HeapTrace interview question

code to find second smallest element in integer array ?