Thanks to visit codestin.com
Credit goes to ide.judge0.com

The source code for this example is available here.