Use closure in a function iterate from 1..seq.len() use hashmap to find number(gap) that occurs just once we could use 3 functions ideally - but for codewars it was simpler to make 1 function and use a closure plus I wanted to practice using closures more!