Infosys interview question

String Based Question 1) Reverse String 2) Count Character