TORC interview question

Write a code to complete Euler method