Function to check if the Depth of Parentheses is correct in the given String
using System ; using System . Collections . Generic ; class GFG { static bool Formatted ( String s ) { List < char > k = new List < char > ( ) ; int i = 0 ; while ( i < s . Length ) {