Question d’entretien chez Huawei Technologies

Write an algorithm to find first none repeating character in an string in a single loop.