Write a program that asks the user to enter an array of 8characters then you have to check if characters ‘b’ or ‘a’ appearswithin the characters and replace them with ‘B’ or ‘A’. For exampleyou enter “a m a l a a b d†The output should be “A m A l A A Bdâ€