JSI Telecom interview question

simple Java script question consists switch case and write output