Revise:
https://practice.geeksforgeeks.org/problems/largest-prime-factor2601/1/?track=interview-mathematical&batchId=117#