using System;
using System.Collections;
public class Program
{
// Given a string of text containing fields that start with '[' and end with ']' and the current selection location.
// Create one method that will return the next field closest to the current selection.
// Create a second method that will return the previous field closest to the current selection.
// Example
// Input:
// text = The patient is a [age]-year-old [gender].
// selectionStart = 4
// selectionLength = 7
//
// Output:
// nextField = [age]
// previousField = [gender]
public static void Main()
}