Siemens interview question

What is agile. write code on counting specific alphabets repeating in a sentence.