C # program to find first element that is strictly greater than given target .
using System ; class GfG { private static int next ( int [ ] arr , int target ) { int start = 0 , end = arr . Length - 1 ; int ans = - 1 ; while ( start <= end ) { int mid = ( start + end ) / 2 ;