2246. Longest Path With Different Adjacent Characters - Hard | DSA Corner | Talentd