Could you help me to create this algorithm?
Implement in Scala an algorithm which allows to find the first occurrence of a character in a string. If the character is found, return its position in the sequence, otherwise return -1. String = ”Scala”, Character = ’ c’→ 1