Fanatics Interview Question

Algorithm in C#, Basic questions