Eaton Interview Question

write .net codes