Remote interview question

Questions about the assignment and why I picked specific approach