• + 1 comment

    Nice use of LINQ methods but the drwback in your solution is it will run loop 3 times on array. For very big array it's not cost effective.