LinkedIn Interview Question

3 questions, 2 easy one medium. One easy one medium off leetcode