Company: IBM sde
Difficulty: medium
You are given a string s consisting of lowercase English letters. In the string, some characters may appear multiple times. Your task is to find the first character that appears exactly once. If no such character exists, return -1. #include <bits/stdc++.h> /* * Complete the 'first_non_repeating' function below. * * The function is expected to return an INTEGER. * The function accepts STRING s as parameter. */ int first_non_repeating(string s) { } int main() ...