First Non Repeating Character In Leetcode Problems On Graphs