Is it possible to know the best answer that has been posted?
My solution takes 16ms for all the test cases, which happens to be ~64% faster than other solutions.
What was the method used for the top performing solution??