Blue Yonder Interview Question

1.count of each character in string using Java streams. 2.sql to find second maximum salary