Implement sorting and set intersection with input parsing | BlackRock