Microsoft Interview Question

Asked to solve programming problems in 2 hours and solve them.