Solve six algorithmic problems | LinkedIn Interview Question