Educase India Interview Question

one interview basic javascript 1 dsa coding 2nd highest array thatsall from my side