ByteDance Interview Question

Caclulate sqrt(x). Find number appearing most.