A Simple C # program to count triplets with sum smaller than a given value
using System ; class GFG { static int [ ] arr = new int [ ] { 5 , 1 , 3 , 4 , 7 } ; static int countTriplets ( int n , int sum ) {