Leetcode 1093 Statistics from a Large Sample