Function to check HP
if ( checkIsHP ( arr , n ) ) { Console . Write ( " Yes , ▁ A ▁ HP ▁ can ▁ be ▁ formed " + " STRNEWLINE " ) ; flag = 1 ; } else if ( flag == 0 ) { Console . Write ( " No " ) ; } } }