Exemplo n.º 1
0
            public string GetResult()
            {
                var res       = "";
                var oneIndex  = Cups.FindIndex(c => c == 1);
                var lookIndex = GetNextCupIndex(oneIndex);

                while (lookIndex != oneIndex)
                {
                    res      += Cups[lookIndex];
                    lookIndex = GetNextCupIndex(lookIndex);
                }
                return(res);
            }