public static void Main()
Console.WriteLine(Reverse("test") == ex1);
Console.WriteLine(Reverse("121") == ex2);
Console.WriteLine(Reverse("111") == ex2);
Console.WriteLine(Reverse("123") == ex3);
IMyCustomQueueFIFO queue = new MyCustomQueue();
Console.WriteLine(queue.Pop() == 1);
Console.WriteLine(queue.Pop() == 2);
IMyCustomStackLIFO stack = new MyCustomStack();
Console.WriteLine(stack.Pop() == 2);
Console.WriteLine(stack.Pop() == 1);
private static string Reverse(string arg)
interface IMyCustomQueueFIFO {
interface IMyCustomStackLIFO {
class MyCustomQueue : IMyCustomQueueFIFO {
public void Push(int num) {
throw new NotImplementedException();
throw new NotImplementedException();
class MyCustomStack : IMyCustomStackLIFO {
public void Push(int num) {
throw new NotImplementedException();
throw new NotImplementedException();