Schneider Electric Interview Question

Javascript coding and output questions