Coforge Interview Question

1) reverse string 2) find frequency of character in string using java 8