Python Playground - Longest chain in 2D array: Online Interpreter, Compiler & Editor | Sololearn