JSI Telecom Interview Question

simple Java script question consists switch case and write output