How To Find Longest Chain