Function to find array with K subarrays with sum S
static void SubarraysWithSumS ( int n , int k , int s ) { for ( int i = 0 ; i < k ; i ++ ) Console . Write ( s + " ▁ " ) ; for ( int i = k ; i < n ; i ++ ) Console . Write ( s + 1 + " ▁ " ) ; }