fn main() { println!("Hello, world!"); } struct Solution {} impl Solution { pub fn next_greater_element(nums1: Vec, nums2: Vec) -> Vec { let mut result = nums1.clone(); for i in result.iter_mut() { nums2.iter().position(|&x| x == *i); } result } }