Eaton interview question

write .net codes