• + 0 comments

    scala

    ( arr.reduce((a,b)=>a+1) - arr.head ) + 1