Intel Corporation interview question

atoi implementation function in c# or Python