IBM Interview Question

coding round :-write code to find prime factor for a given number