LinkedIn Interview Question

2 algorithmic questions that were purely academic