pub fn algorithm_1(nums: Vec<i32>) -> Vec<Vec<i32>>
Sample algorithm implementation from LeetCode (fastest)
nums