// Type your code here, or load an example.
pub fn square(num: i32) -> i32 {
    num * num
}

// If you use `main()`, declare it as `pub` to see it in the output:
// pub fn main() { ... }

fn two_sum(arr: &[i32], target: i32) -> Option<[i32; 2]> {
  for i in 0..arr.len() {
    for j in (i+1)..arr.len() {
      if arr[i] + arr[j] == target {
        return Some([i, j]);
      }
    }
  }
  return None;
}



fn main() {
    rustlet two_sum = [1, 2, 3, 4, 5]; // replace with your array
    let target = 5; // replace with the target sum
    let result = two_sum(two_sum, target);
} rewrite this for me so it compiles and I can test my two sum function