add assign 2 solutions

post solutions for assignment 2 written questions