IBM interview question

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