Longest Consecutive Sequence py and java accepted

Longest Consecutive Sequence python and java accepted