Code Editor

Language: JavaScript

Output:

Press Run to see the output.