using System.Collections.Generic;
using System.Data.SqlClient;
public static void Main()
ReverseString("hello world");
ReverseWordOrder("Diviso at job a like would I");
RotateRight(new int[]{ 1, 2, 3, 4, 5 });
FindSecondLargeInArray(new int[] { 1, 2, 3, 4, 5 });
SingleToMulti(new int[] { 1, 2, 3, 4, 5, 6 }, 2, 3);
internal static void ReverseString(string str)
internal static void ReverseWordOrder(string str)
internal static void RotateRight(int[] array)
internal static void FindSecondLargeInArray(int[] arr)
internal static void SingleToMulti(int[] array, int row, int column)
internal static void BonusQuestionSql()
string connectionString = "Server=mssql-23833-0.cloudclusters.net,23833;Database=devtest;TrustServerCertificate=True;user=devtest;Password=devtest1234";
using (var _connection = new SqlConnection(connectionString))
using (SqlCommand command = new SqlCommand("SELECT * FROM [tblOrder]", _connection))
SqlDataReader sqlDataReader = command.ExecuteReader();
if (sqlDataReader.HasRows)
while (sqlDataReader.Read())
Console.WriteLine(sqlDataReader["id"].ToString());