Deutsche Telekom interview question

oops, .net, SQL, some problem to solve