Deutsche Telekom Interview Question

oops, .net, SQL, some problem to solve