https://learnprogramming.in.net/java-program-to-find-the-longest-consecutive-sequence/