TORC Interview Question

Write a code to complete Euler method