correct my code of farestpair

correct my code of farestpair