Whitehat interview question

Write a program to calculate square root and cube root