Developer Interview Test  - In c# and javascript