Pregunta de entrevista de ZS Associates

Write a code to find a root of a integer.