Who wouldn’t just sort the array and check it? His solution is very brittle: it fails in so many ways if the data had unexpected properties. Real world requirements usually contain inaccurate assumptions. He spent days to find a terrible answer, when the obvious solution is much better
Maybe those who care about computational complexity for instance?
Start with what works and then optimize
Sophomoric is exactly the word here, and it’s no surprise that the story is about Microsoft