Given the root of a binary tree, return an array of the largest value in each row of the tree (0-indexed).