Question d’entretien chez ZS Associates

Write a code to find a root of a integer.