Inscripts interview question

2nd highest number in an array, * pattern questions, javascript, ajax, php