ZS Associates interview question

Write a code to find a root of a integer.