In an interview I was asked a question like:
Take an input from console like: "welcome to world" and count a particular character entered by the user at which index and how many times(i.e. occurance of the character) without using any built-in methods like
charAt(int ind)
etc.