Eulerian paths | Cracking Leetcode