BMO Financial Group interview question

1) the difference between stringbuffer and stringbuilder. 2) something similar to Top K Frequent Elements of Leetcode