Degree of an algebraic number

Problem Name:
Degree of an algebraic number
Site:HackerRank
Links:
Tags:
Problem setters: