Update MaximumLengthChainofPairs.java