Sollicitatievraag bij CodeArray

In technical coding round they asked me to write code on second largest element in an array and another code on to replace 0 with 1